package org.spbsu.apco.testing.taskset;

import org.spbsu.apco.common.task.impl.ScreenshotTask;
import org.spbsu.apco.server.taskset.BaseTaskSet;

import java.util.Arrays;

/**
 * User: solozobov
 * Date: 25.11.12
 */

public class ScreenshotTaskSet extends BaseTaskSet {
    private final String screenshotName;

    public ScreenshotTaskSet(final String screenshotName) {
        this.screenshotName = screenshotName;
    }

    @Override
    public void initializeTasks() {
        addLeafTask(new ScreenshotTask(), Arrays.asList(screenshotName));
    }
}